package com.gs.thunder_manage.entity;

import org.apache.ibatis.type.Alias;

import java.util.List;

@Alias("User")
public class User {

    private  String id; //用户账号

    private String name;//用户姓名

    private String password = "123456";//登录密码

    private List<String> roleItems;

    private boolean locked;
    //private String usersGroup;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<String> getRoleItems() {
        return roleItems;
    }

    public void setRoleItems(List<String> roleItems) {
        this.roleItems = roleItems;
    }

    public boolean isLocked() {
        return locked;
    }

    public void setLocked(boolean locked) {
        this.locked = locked;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", roleItems=" + roleItems +
                ", locked=" + locked +
                '}';
    }
}
